import { request } from "@/request";

export async function fetchList(data) {
  return await request("/admin/mallbook/books/category", {
    method: "GET",
    data,
  });
}
export async function add(data) {
  return request("/admin/mallbook/addMallCategory", {
    method: "POST",
    data,
  });
}

export async function update(data) {
  return request("/admin/mallbook/updateMallCategory", {
    method: "POST",
    data,
  });
}

export function remove(data) {
  return request(`/admin/mallbook/deleteMallCategory?ids=${data.ids}`, {
    method: "POST",
  });
}
